Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Implement evaluateJavascript method for Cordova 6 #95

Merged
merged 1 commit into from
Sep 2, 2016

Conversation

dpogue
Copy link

@dpogue dpogue commented Aug 31, 2016

Required for Cordova-Android v6 compatibility with the new (threadsafe) bridge method: apache/cordova-android#320

*
* Not exposed outside of the package.
*/
interface XWalkCordova6Interface {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's too complex to keep compatibility with adding new interface. It's better removing the annotation "Override" and adding annotation manually like below

/**
* This API is used in Cordova-Android 6.0.0 override from
* CordovaWebViewEngine.java
* @SInCE Cordova 6.0
*/
public void evaluateJavascript(String js, ValueCallback callback) {
webView.evaluateJavascript(js, callback);
}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that definitely simplifies things. I'll update the PR with that change :)

@dpogue
Copy link
Author

dpogue commented Sep 1, 2016

@fujunwei Updated. Thanks for the review! :)

@fujunwei
Copy link

fujunwei commented Sep 2, 2016

Thanks, merging.

@fujunwei fujunwei merged commit 3eed424 into crosswalk-project:master Sep 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants